*******  replication Table 3 

**** all targets
eststo clear

** MNLF
use "MNLF_Target_Final.dta" , clear

quietly: xtpoisson attack_region ramadan christian_4days christian_2days christian_1days nonreli_holiday  /*
*/ nation_election Islamic_3day Islamic_2day  Islamic_1day rain hot lag_attack_region cubic1-cubic3 , fe vce(robust) difficult
eststo model1

** MILF
use "MILF_Target_Final.dta" , clear

quietly: xtpoisson attack_region ramadan christian_4days christian_2days christian_1days nonreli_holiday  /*
*/ nation_election Islamic_3day Islamic_2day  Islamic_1day rain hot lag_gov_counter lag_attack_region cubic1-cubic3 , fe vce(robust) difficult
eststo model2


** BIFF
use "BIFF_Target_Final.dta" , clear

quietly: xtpoisson attack_region ramadan christian_4days christian_2days christian_1days nonreli_holiday  /*
*/ nation_election Islamic_3day Islamic_2day  Islamic_1day rain hot lag_gov_counter lag_attack_region cubic1-cubic3 , fe vce(robust) difficult
eststo model3


*** Patani before 2000

use "Patani_bef_Target_Final.dta" , clear

quietly: xtpoisson attack_region ramadan  Bud_holiday nonreli_holiday  /*
*/ nation_election Islamic_3day Islamic_2day  Islamic_1day rain hot  lag_attack_region cubic1-cubic3 , fe vce(robust) difficult
eststo model4


*** Patani after 2000


use "Patani_aft_Target_Final.dta" , clear

quietly: xtpoisson attack_region ramadan Bud_holiday nonreli_holiday  /*
*/ nation_election Islamic_3day Islamic_2day  Islamic_1day rain hot lag_gov_counter lag_attack_region cubic1-cubic3 , fe vce(robust) difficult
eststo model5

*** GAM

use "GAM_Target_Final.dta" , clear

quietly: xtpoisson attack_region ramadan christian_4days christian_2days christian_1days nonreli_holiday  /*
*/ nation_election Islamic_3day Islamic_2day  Islamic_1day rain hot lag_gov_counter lag_attack_region cubic1-cubic3 , fe vce(robust) difficult
eststo model6


esttab using Table_3.tex,  order(ramadan Islamic_3day Islamic_2day  Islamic_1day christian_4days christian_2days  christian_1days  Bud_holiday    nonreli_holiday  nation_election lag_gov_counter  rain hot lag_attack_region cubic1 cubic2 cubic3 ) label star(* 0.05 ** 0.01 *** 0.001) se b(3) replace booktabs ///
  alignment(D{.}{.}{-1})      mtitles("Model 1" "Model 2"  "Model 3" "Model 4"  "Model 5" "Model 6")                   ///
  title(Fixed Effects Model table\label{tab1})


**** Figure 1  
**** Need to adjust the figure manually
coefplot model1 model2  model6 model4 model3   model5 , keep(ramadan) xline(0) order(ramadan) saving(Figure1, replace) 
  



  
